package com.beiwei.mapper;

import java.util.List;
import java.util.Map;

import com.beiwei.auto.mapper.WeeklogMapper;
import com.beiwei.auto.mode.Weeklog;
import com.beiwei.mode.VWeeklog;

public interface VWeeklogMapper extends WeeklogMapper {

	/**
	 * 根据weeklogId查询出对应的Weeklog
	 */
	public VWeeklog findVWeeklogByWeeklogId(Integer weeklogId) throws Exception;

	/**
	 * 根据部门id和groupId查询出该部门本周的所有周报
	 */
	public List<VWeeklog> findVWeeklogListByDepartmentIdAndGroupId(Map<String, Integer> map) throws Exception;

	/**
	 * 新加一个weeklog返回改weeklogId
	 */
	public int getWeeklogIdByAddWeeklog(Weeklog weeklog) throws Exception;
}